﻿/***************************************************************
 * Name:      common.h
 * Purpose:   通用函数、结构和枚举定义
 * Author:    杨卓荦 (yzl@bang5.net)
 * Created:   2010-08-29
 * Copyright: 杨卓荦 (http://www.bang5.net)
 * License:
 **************************************************************/
#ifndef COMMON_H_INCLUDED
#define COMMON_H_INCLUDED

#include <string>

// 枚举类型定义
enum _PROTYPE {
  UNKNOW_PROTOCOL = 0,
  FTP_PROTOCOL = 1,
  HTTP_PROTOCOL = 2,
  SFTP_PROTOCOL = 3,
  SHTTP_PROTOCOL = 4,
  RTSP_PROTOCOL = 5,
  MMS_PROTOCOL = 6,
  RSYNC_PROTOCOL = 7
};

// 函数定义
void Trim( std::string& str );

#endif // COMMON_H_INCLUDED
